package com.jbm.jbmsupplier.activity.address.audiovideo;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.MediaController;
import android.widget.RelativeLayout;
import android.widget.VideoView;

import com.jbm.jbmsupplier.R;

import butterknife.ButterKnife;
import butterknife.InjectView;

/**
 * Created by 家帮忙 on 2017/9/27.
 */

public class VideoCamer extends Activity {
    @InjectView(R.id.vv)
    VideoView vv;
    @InjectView(R.id.rl_vv)
    RelativeLayout rlVv;


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.vediocamer);
        ButterKnife.inject(this);
//添加播放控制条,还是自定义好点
        vv.setMediaController(new MediaController(this));
// 播放在线视频
        vv.setVideoPath(getIntent().getStringExtra("url"));
        vv.setVisibility(View.VISIBLE);
        vv.start();
        vv.requestFocus();
    }



}
